<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Network BFS: Referencia del Archivo network.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generado por Doxygen 1.6.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Buscar');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Página&nbsp;principal</span></a></li>
      <li><a href="annotated.html"><span>Clases</span></a></li>
      <li class="current"><a href="files.html"><span>Archivos</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Buscar" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;de&nbsp;archivos</span></a></li>
      <li><a href="globals.html"><span>Miembros&nbsp;de&nbsp;los&nbsp;ficheros</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Referencia del Archivo network.h</h1><code>#include &lt;stdbool.h&gt;</code><br/>
<code>#include &quot;glib/glist.h&quot;</code><br/>
<code>#include &quot;<a class="el" href="node_8h_source.html">node.h</a>&quot;</code><br/>

<p><a href="network_8h_source.html">Ir al código fuente de este archivo.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Tipos definidos</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad31e68d883a56c6c3dfc7a6d63591805"></a><!-- doxytag: member="network.h::network" ref="ad31e68d883a56c6c3dfc7a6d63591805" args="" -->
typedef struct <a class="el" href="structs_network.html">sNetwork</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>network</b></td></tr>
<tr><td colspan="2"><h2>Funciones</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structs_network.html">network</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="network_8h.html#a9180750065e74c1d1c16da870f9374c5">network_create</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structs_network.html">network</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="network_8h.html#a34cd014ea5f9e7f943c96801014afc52">network_destroy</a> (<a class="el" href="structs_network.html">network</a> net)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="network_8h.html#a383a49dc961cf354aaed2d3c186f7e0d">network_addEdge</a> (<a class="el" href="structs_network.html">network</a> net, const unsigned int label1, const unsigned int label2, const unsigned int cap)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="network_8h.html#a404de942df8d4a2e6a5ccbc7b40f106c">network_addNode</a> (<a class="el" href="structs_network.html">network</a> net, const unsigned int label)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structs_node.html">node</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="network_8h.html#a1045f341ab878f2e4fb9592a36207c25">network_getNode</a> (<a class="el" href="structs_network.html">network</a> net, const unsigned int label)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GList *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="network_8h.html#a5094a09ef2e200e1c3cf6435e2590183">network_getNeighbors</a> (const <a class="el" href="structs_network.html">network</a> net, const unsigned int label)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="network_8h.html#affabecb9e02c812449bc587d15b264e6">network_edgeCap</a> (const <a class="el" href="structs_network.html">network</a> net, const unsigned int label_a, const unsigned int label_b)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="network_8h.html#acaaa736a97111e6146b93731e318741a">network_nodeExists</a> (const <a class="el" href="structs_network.html">network</a> net, const unsigned int label)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="network_8h.html#a44757b2cf683f83d30dcc8892cae59b6">network_edgeExists</a> (const <a class="el" href="structs_network.html">network</a> net, const unsigned int label_a, const unsigned int label_b)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Descripción detallada</h2>
<hr/><h2>Documentación de las funciones</h2>
<a class="anchor" id="a383a49dc961cf354aaed2d3c186f7e0d"></a><!-- doxytag: member="network.h::network_addEdge" ref="a383a49dc961cf354aaed2d3c186f7e0d" args="(network net, const unsigned int label1, const unsigned int label2, const unsigned int cap)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void network_addEdge </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_network.html">network</a>&nbsp;</td>
          <td class="paramname"> <em>net</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned int&nbsp;</td>
          <td class="paramname"> <em>label1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned int&nbsp;</td>
          <td class="paramname"> <em>label2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned int&nbsp;</td>
          <td class="paramname"> <em>cap</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Agrega una arista a una red. </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>net</em>&nbsp;</td><td>Red a la que será agregada la arista. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>label1</em>&nbsp;</td><td>Etiqueta del nodo de origen. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>label2</em>&nbsp;</td><td>Etiqueta del nodo de destino. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>cap</em>&nbsp;</td><td>Capacidad de la arista. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a404de942df8d4a2e6a5ccbc7b40f106c"></a><!-- doxytag: member="network.h::network_addNode" ref="a404de942df8d4a2e6a5ccbc7b40f106c" args="(network net, const unsigned int label)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void network_addNode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_network.html">network</a>&nbsp;</td>
          <td class="paramname"> <em>net</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned int&nbsp;</td>
          <td class="paramname"> <em>label</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Agrega un nodo a una red. La etiqueta asociada al nodo deberá ser diferente a otras etiquetas que ya están siendo utilizadas por la red. </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>net</em>&nbsp;</td><td>Red a la que será agregado el nodo. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>label</em>&nbsp;</td><td>Etiqueta del nodo que será agregado. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9180750065e74c1d1c16da870f9374c5"></a><!-- doxytag: member="network.h::network_create" ref="a9180750065e74c1d1c16da870f9374c5" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structs_network.html">network</a> network_create </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor de una red de flujo. </p>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>Una red de flujo vacía (sin vértices ni aristas). </dd></dl>

</div>
</div>
<a class="anchor" id="a34cd014ea5f9e7f943c96801014afc52"></a><!-- doxytag: member="network.h::network_destroy" ref="a34cd014ea5f9e7f943c96801014afc52" args="(network net)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structs_network.html">network</a> network_destroy </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_network.html">network</a>&nbsp;</td>
          <td class="paramname"> <em>net</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Destructor de una red de flujo. </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>net</em>&nbsp;</td><td>Red que será destruida. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>NULL. </dd></dl>

</div>
</div>
<a class="anchor" id="affabecb9e02c812449bc587d15b264e6"></a><!-- doxytag: member="network.h::network_edgeCap" ref="affabecb9e02c812449bc587d15b264e6" args="(const network net, const unsigned int label_a, const unsigned int label_b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int network_edgeCap </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structs_network.html">network</a>&nbsp;</td>
          <td class="paramname"> <em>net</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned int&nbsp;</td>
          <td class="paramname"> <em>label_a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned int&nbsp;</td>
          <td class="paramname"> <em>label_b</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Devuelve la capacidad de un arista dentro de una red. Los nodos especificados por label_a y label_b deben formar parte de la red. </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>net</em>&nbsp;</td><td>Red que será consultada. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>label_a</em>&nbsp;</td><td>Etiqueta del nodo de origen. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>label_b</em>&nbsp;</td><td>Etiqueta del nodo de destino. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>Capacidad de la arista que une los nodos dados por label_a y label_b. </dd></dl>

</div>
</div>
<a class="anchor" id="a44757b2cf683f83d30dcc8892cae59b6"></a><!-- doxytag: member="network.h::network_edgeExists" ref="a44757b2cf683f83d30dcc8892cae59b6" args="(const network net, const unsigned int label_a, const unsigned int label_b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool network_edgeExists </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structs_network.html">network</a>&nbsp;</td>
          <td class="paramname"> <em>net</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned int&nbsp;</td>
          <td class="paramname"> <em>label_a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned int&nbsp;</td>
          <td class="paramname"> <em>label_b</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Devuelve verdadero si y sólo si una arista forma parte de una red. </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>net</em>&nbsp;</td><td>Red que será consultada. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>label_a</em>&nbsp;</td><td>Etiqueta del nodo de origen. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>label_b</em>&nbsp;</td><td>Etiqueta del nodo de destino. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>Verdadero si la arista forma parte de la red, falso de lo contrario. </dd></dl>

</div>
</div>
<a class="anchor" id="a5094a09ef2e200e1c3cf6435e2590183"></a><!-- doxytag: member="network.h::network_getNeighbors" ref="a5094a09ef2e200e1c3cf6435e2590183" args="(const network net, const unsigned int label)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GList* network_getNeighbors </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structs_network.html">network</a>&nbsp;</td>
          <td class="paramname"> <em>net</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned int&nbsp;</td>
          <td class="paramname"> <em>label</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Devuelve una lista de vértices vecinos a un nodo dentro de una red. </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>net</em>&nbsp;</td><td>Red de la cual serán extraídos los vecinos. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>label</em>&nbsp;</td><td>Etiqueta del nodo cuyos vecinos serán retornados. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>Lista de vértices vecinos. </dd></dl>

</div>
</div>
<a class="anchor" id="a1045f341ab878f2e4fb9592a36207c25"></a><!-- doxytag: member="network.h::network_getNode" ref="a1045f341ab878f2e4fb9592a36207c25" args="(network net, const unsigned int label)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structs_node.html">node</a> network_getNode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_network.html">network</a>&nbsp;</td>
          <td class="paramname"> <em>net</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned int&nbsp;</td>
          <td class="paramname"> <em>label</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Devuelve un nodo de una red. </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>net</em>&nbsp;</td><td>Red de la cual será extraído el nodo. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>label</em>&nbsp;</td><td>Etiqueta del nodo que será extraído. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="acaaa736a97111e6146b93731e318741a"></a><!-- doxytag: member="network.h::network_nodeExists" ref="acaaa736a97111e6146b93731e318741a" args="(const network net, const unsigned int label)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool network_nodeExists </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structs_network.html">network</a>&nbsp;</td>
          <td class="paramname"> <em>net</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned int&nbsp;</td>
          <td class="paramname"> <em>label</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Devuelve verdadero si y sólo si un nodo forma parte de una red. </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>net</em>&nbsp;</td><td>Red que será consultada. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>label</em>&nbsp;</td><td>Etiqueta del nodo. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>Verdadero si el nodo es parte de la red, falso de lo contrario. </dd></dl>

</div>
</div>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>Todo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Clases</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Archivos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Funciones</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"/><address style="text-align: right;"><small>Generado el Wed Apr 13 17:47:44 2011 para Network BFS por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>
